package com.huike.review.mapper;

import com.huike.review.pojo.Review;
import com.huike.review.vo.MybatisReviewVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Mybatis复习的Mapper层
 */
public interface MybatisReviewMapper {


    int  savadate(MybatisReviewVO mybatisReviewVO);

    int savedate(@Param("name") String name,@Param("age") String age,@Param("sex") String sex);

    int  saveDataByPojo(Review review);

    Review getId(@Param("id")Long id);

    int removeData(Long id);

    int updateData(Review review);

    List<Review> getDataByPage();

}
